{% load staticfiles %}
<!DOCTYPE html>
<html>
<head>
    <title>Black &amp; White</title>

    <!-- meta -->
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="description" content="浩瀚学海,虔诚分享!">
    <meta name='robots' content='index,follow'/>
    <meta name="keywords" content="python,博客,django,科技,运维,Linux,shell,MySql,Go">


    <!-- css -->
    <link rel="stylesheet" href="{% static 'css/default.css' %}">
    <link rel="stylesheet" href="{% static 'css/bootstrap.min.css' %}">
    <link rel="stylesheet" href="http://code.ionicframework.com/ionicons/2.0.1/css/ionicons.min.css">
    <link rel="stylesheet" href="{% static 'css/pace.css' %}">
    <link rel="stylesheet" href="{% static 'css/custom.css' %}">
    {#    <link href="https://cdn.bootcss.com/highlight.js/9.15.8/styles/github.min.css" rel="stylesheet">#}
    <link rel="stylesheet" href="{% static 'css/github.min.css' %}">
    <!-- js -->
    <script src="{% static 'js/jquery-2.1.3.min.js' %}"></script>
    <script src="{% static 'js/bootstrap.min.js' %}"></script>
    <script src="{% static 'js/pace.min.js' %}"></script>
    <script src="{% static 'js/modernizr.custom.js' %}"></script>

    <style>
        .codehilite {
            padding: 0;
        }

        /* for block of numbers */
        .hljs-ln-numbers {
            -webkit-touch-callout: none;
            -webkit-user-select: none;
            -khtml-user-select: none;
            -moz-user-select: none;
            -ms-user-select: none;
            user-select: none;

            text-align: center;
            color: #ccc;
            border-right: 1px solid #CCC;
            vertical-align: top;
            padding-right: 5px;
        }

        .hljs-ln-n {
            width: 30px;
        }

        /* for block of code */
        .hljs-ln .hljs-ln-code {
            padding-left: 10px;
            white-space: pre;
        }

        /* 搜索关键词高亮 */
        span.highlighted {
            color: red;
        }
    </style>
</head>

<body>
{#<scripts src="https://cdn.bootcss.com/highlight.js/9.15.8/highlight.min.js"></scripts>#}
{#<scripts src="https://cdn.bootcss.com/highlightjs-line-numbers.js/2.7.0/highlightjs-line-numbers.min.js"></scripts>#}
<script src="{% static 'js/highlight.min.js' %}"></script>
<script src="{% static 'js/highlightjs-line-numbers.min.js' %}"></script>
<script>
    hljs.initHighlightingOnLoad();
    hljs.initLineNumbersOnLoad();
</script>

<div id="site-head" class="container-fluid">

    <header id="site-header">
        <div class="row">
            <div class="col-md-4 col-sm-5 col-xs-8">
                <div class="logo">
                    <h2><a href="{% url 'blog:index' %}"><b>Black</b> &amp; White</a></h2>
                </div>
            </div><!-- col-md-4 -->
            <div class="col-md-8 col-sm-7 col-xs-4">
                <nav class="main-nav" role="navigation">
                    <div class="navbar-header">
                        <button type="button" id="trigger-overlay" class="navbar-toggle">
                            <span class="ion-navicon"></span>
                        </button>
                    </div>

                    <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
                        <ul class="nav navbar-nav navbar-right">
                            <li class="cl-effect-11"><a href="index.html" data-hover="首页">首页</a></li>
                            <li class="cl-effect-11"><a href="full-width.html" data-hover="博客">博客</a></li>
                            <li class="cl-effect-11"><a href="about.html" data-hover="关于">关于</a></li>
                            <li class="cl-effect-11"><a href="contact.html" data-hover="联系">联系</a></li>
                            <li class="cl-effect-11"><a href="#" data-hover="登录">登录</a></li>
                        </ul>
                    </div><!-- /.navbar-collapse -->
                </nav>
                <div id="header-search-box">
                    {#                    <a id="search-menu" href="#"><span id="search-icon" class="ion-ios-search-strong"></span></a>#}
                    <a id="search-menu" href="#"><span id="search-icon" class="iconfont">&#xe614;</span></a>

                    <div id="search-form" class="search-form">
                        <form role="search" method="get" id="searchform" action="{% url 'article:search' %}">
                            <input type="search" name="q" placeholder="搜索" required>
                            {#                            <button type="submit"><span class="ion-ios-search-strong"></span></button>#}
                            <button type="submit"><span class="iconfont">&#xe614;</span></button>
                        </form>
                    </div>

                </div>
            </div><!-- col-md-8 -->
        </div>
    </header>


</div>
{#<div class="copyrights">Modified by <a href="http://zmrenwu.com/">菜根谭</a></div>#}

<div class="header-banner">
<div class="container-fluid">
{% block banner %}

<banner class='banner'>

</banner>
</div>
{% endblock %}
</div>



<div class="content-body">
    <div class="container">
        <div class="row">
            <main class="col-md-8">
                {% block main %}
                {% endblock main %}
            </main>
            <aside class="col-md-4">
                {% block rightbar %}

                {% endblock rightbar %}

            </aside>
        </div>
    </div>
</div>


<footer id="site-footer">
    <div class="container">
        <div class="row">
            <div class="col-md-12 text-center">
                <p class="copyright">基于Django构建 &nbsp;|&nbsp; &copy 2020 <a href="#" title="网页模板"
                                                                            target="_blank">菜根譚</a>
                    <a href="/sitemap.xml" title="Sitemap" target="_blank">网站地图</a>
                    <br/>
                    <a href="http://www.miitbeian.gov.cn">渝ICP备19057936号</a>


                </p>
            </div>
        </div>
    </div>
</footer>

{% include 'framework/back_to_top.html' %}

<!-- Mobile Menu -->
<div class="overlay overlay-hugeinc">
    <button type="button" class="overlay-close"><span class="ion-ios-close-empty"></span></button>
    <nav>
        <ul>
            <li><a href="index.html">首页</a></li>
            <li><a href="full-width.html">博客</a></li>
            <li><a href="about.html">关于</a></li>
            <li><a href="contact.html">联系</a></li>
        </ul>
    </nav>
</div>

<script src="{% static 'js/script.js' %}"></script>

</body>
</html>
